package VirtualStatic;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.Color;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;
import org.newdawn.slick.state.transition.FadeInTransition;

/** Classe principale del gioco, crea un ambiente grafico basato su stati */
public class VirtualStatic extends StateBasedGame{
	public final static int MAINMENUSTATE = 0;
	public final static int OPTIONSTATE = 1;
	
	/** Costruttore, crea un StateBasedGame di nome SuperNicola */
	public VirtualStatic() {
		super("Virtual Static");
	}
 
	/** Metodo iniziale, aggiunge gli stati di gioco alla classe principale */
	public void initStatesList(GameContainer gc) throws SlickException {
		MainMenuState main = new MainMenuState(MAINMENUSTATE);
		this.addState(main);
		
		this.enterState(MAINMENUSTATE, new FadeInTransition(Color.black, 1500), null);
	}
 
	/** Metodo principale */
	public static void main(String[] args) throws SlickException{
         AppGameContainer app = new AppGameContainer(new VirtualStatic());
         
         app.setDisplayMode(1280, 768, false);
         app.setShowFPS(true);
         app.setVSync(true);
         
         app.start();
    }
}
